package com.hangzhou.xyj.net.request;

import com.google.gson.Gson;
import com.google.gson.JsonObject;
import com.hangzhou.xyj.net.request.base.BaseRequest;
import com.hangzhou.xyj.utils.constants.API;

/**
 * Created by Administrator on 2016/5/9.
 */
public class GetUsersInfoReq extends BaseRequest {

    public GetUsersInfoReq(String... ids) {
        StringBuilder builder = new StringBuilder();
        for (String id : ids) {
            builder.append(id + ",");
        }
        JsonObject jsonObject = new JsonObject();
        jsonObject.addProperty("users", builder.toString());
        add("data", new Gson().toJson(jsonObject));
    }

    @Override
    public String getUrl() {
        return API.GET_USERS_INFO;
    }
}
